<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../static/css/background.css"/>
</head>
<body>
    <h1>index</h1>
    <p>name: {{.name}}</p>
    <p>age: {{.age}}</p>

    {{range .courses}}<!--range函数遍历传入的切片-->
        <p>{{.}}</p>  <!-- "."代表切片中每一项数据 -->
    {{end}}

    <img src="../static/imgs/1.webp" style="width: 300px;height: 300px" alt=""/>
    <scan>likes：<label id="lb1">1</label></scan>
    <input type="button" id="btn1" onclick="plus()" value="+1">
</body>
<script src="../static/js/dianzan.js"></script>
</html>